#include "ScnsIwdg.c.h"

#if defined(SCNS_IWDG_ENABLE)&&SCNS_IWDG_ENABLE==1

#include "iwdg.h"

ScnsStatus scnsBspIwdgInit()
{
    MX_IWDG_Init();
    return SCNS_STATUS_OK;
}

void scnsBspIwdgFeed(void)
{
#if defined(STM32F1xx_LL_IWDG_H)
    LL_IWDG_ReloadCounter(IWDG);
#elif defined(STM32F1xx_HAL_IWDG_H)
    HAL_IWDG_Refresh(&hiwdg);
#else
#error
#endif
}

#endif
